ValueToTime 

image66.gif

The Value To Time Helper gives you the ability to take any scalar value and turn it into a time value. Any value piped into the Value input data stream will be converted into a time value (frames/ticks). This can be very powerful tool; imagine taking a Distance value and converting it into time so that it could control the speed of another animated object. For example, lets say you pipe in the speed of a particle, and the speed is 20. The Value To Time Helper will take this value and turn it into 20 Frames or Ticks or whatever you have set. So if an object is animated it will show the animation status at frame 20.

Operator Inputs 

ON - (Bool) This input data stream determines whether the operator is considered 'on' or 'off.' You can connect other operators to this input channel such as a Bool Helper to activate/deactivate the whole operator.

Time
- (Time) This input data stream is used to define the local time for the operator when the user wants to override the default system time.

Value
- (Scalar) This input data stream is used to define what scalar value (like a distance or speed) is to be converted into a time value.

The Time output of this helper will be increased/decreased accordingly to the amount supplied by the Value input data stream when Value1 and Value2 are used.



 
 
 

Value1 - (Scalar) This input data stream is used to override the Value1 spinner within the ValueToTime rollout.

Time1
- (Frame) This input data stream is used to override the Time1 spinner within the ValueToTime rollout.

Stop1
- (Bool) This input data stream is used to override the upper Stop checkbox state within the ValueToTime rollout.

Value2
- (Scalar) This input data stream is used to override the Value2 spinner within the ValueToTime rollout.

Time2
- (Frame) This input data stream is used to override the Time2 spinner within the ValueToTime rollout.

Stop2
- (Bool) This input data stream is used to override the lower Stop checkbox state within the ValueToTime rollout.

Operator Outputs 

Time - (Time) This output data stream provides the Time conversion of the input scalar value for other operators and rules to use.

Rollout Menu
 

image102.gif

Value1
- This spinner sets the first target value that needs to be reached to create a time value as it is set in Time1. The value will be passed on to the Time output data stream.

Time1
- This spinner represents the frame number of the original object animation that should be reached when Value1 is equal to the amount supplied through the Value input data stream.

Stop
- When this checkbox is active, the time value will be clamped to the value set in Value1. If this checkbox is not active, the time is increased/decreased by the same amount that is supplied through the Value input data stream.

Value2
- This spinner sets the first target value that needs to be reached to create a time value as it is set in Time2. The value will be passed on to the Time output data stream.

Time2
- This spinner represents the frame number of the original object animation that should be reached when Value2 is equal to the amount supplied through the Value input data stream.

Stop
- When this checkbox is active, the time value will be clamped to the value set in Value2. If this checkbox is not active, the time is increased/decreased by the same amount that is supplied through the Value input data stream.

There is only one VALUE input data stream, and it is the one used to compare against the Value1 and Value2 spinners. If Value is equal to Value1, then Time 1 is used as the Time output. The same is true if Value is equal to Value2, then Time2 is used. If the Value is between the two other values, then there will be a linear interpolation between Value1 and Value2. You can even reverse time to make backwards animation using this helper.